﻿var mongoose = require('mongoose');
var config = require('/node/chat/config');

mongoose.connect(config.get('mongoose:uri'), config.get('mongoose:options'));
//mongoose.connect('mongodb://localhost/chat');

module.exports = mongoose;